package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

// InitReqMessageRouter 初始化 ReqMessage 路由信息
func InitReqMessageRouter(Router *gin.RouterGroup) {
	ReqMessageRouter := Router.Group("msg").Use(middleware.OperationRecord())
	{
		ReqMessageRouter.POST("createReqMessage", v1.CreateReqMessage)   // 新建ReqMessage
		ReqMessageRouter.DELETE("deleteReqMessage", v1.DeleteReqMessage) // 删除ReqMessage
		ReqMessageRouter.DELETE("deleteReqMessageByIds", v1.DeleteReqMessageByIds) // 批量删除ReqMessage
		ReqMessageRouter.PUT("updateReqMessage", v1.UpdateReqMessage)    // 更新ReqMessage
		ReqMessageRouter.GET("findReqMessage", v1.FindReqMessage)        // 根据ID获取ReqMessage
		ReqMessageRouter.GET("getReqMessageList", v1.GetReqMessageList)  // 获取ReqMessage列表
	}
}
